//
//  ProjectDetailTopView.m
//  lcf-newproject
//
//  Created by yangyang on 14-11-26.
//  Copyright (c) 2014年 yang. All rights reserved.
//

#import "ProjectDetailTopView.h"

@implementation ProjectDetailTopView

-(void)createProgressView:(CGFloat)progress{
    _progressView = [[CustomProgressView alloc]initWithFrame:CGRectMake(0, 0, ProjectDegressWidth, ProjectDegressHeight)];
    CGFloat radius = ProjectDegressWidth/2;
    [_progressView setProgressLayerWithProgressColor:ProjectDegressProgressColor withRadius:radius-5 withLineWidth:1 withStartAngle:ProjectDegressStartAngle withEndAngle:ProjectDegressEndAngle withStokeEnd:progress];
    [_progressView setTrackLayerWithTrackColor:ProjectDegressTrackColor withRadius:radius-13 withStrokeLineWidth:5 withProgressLineWidth:1 withStartAngle:ProjectDegressStartAngle withEndAngle:ProjectDegressEndAngle];
    [_progressView startProgressLayerAnimation:progress];
    //[_progressView addCenterView:(int)(progress*100)];
    [self.tradeProgressView addSubview:_progressView];
}


@end
